package com.kate.mall.promotion.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;

import java.math.BigDecimal;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;
import lombok.Data;

/**
 * 团购规则
 * 
 * @author kate-chan
 * @email 857782993@qq.com
 * @date 2022-12-26 16:35:22
 */
@Data
@TableName("sms_groupon_rules")
public class GrouponRulesEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 
	 */
	@ApiModelProperty(value = "")
	@TableId
	private Integer id;
	/**
	 * 商品表的商品ID
	 */
	@ApiModelProperty(value = "商品表的商品ID")
	private Integer goodsId;
	/**
	 * 商品名称
	 */
	@ApiModelProperty(value = "商品名称")
	private String goodsName;
	/**
	 * 商品图片或者商品货品图片
	 */
	@ApiModelProperty(value = "商品图片或者商品货品图片")
	private String picUrl;
	/**
	 * 优惠金额
	 */
	@ApiModelProperty(value = "优惠金额")
	private BigDecimal discount;
	/**
	 * 达到优惠条件的人数
	 */
	@ApiModelProperty(value = "达到优惠条件的人数")
	private Integer discountMember;
	/**
	 * 创建时间
	 */
	@ApiModelProperty(value = "创建时间")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
	private Date addTime;
	/**
	 * 更新时间
	 */
	@ApiModelProperty(value = "更新时间")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
	private Date updateTime;
	/**
	 * 团购过期时间
	 */
	@ApiModelProperty(value = "团购过期时间")
	private LocalDateTime expireTime;
	/**
	 * 逻辑删除
	 */
	@ApiModelProperty(value = "逻辑删除")
	private Boolean deleted;

}
